{extend name="$_theme_public_layout"/}

{block name="main"}
<div class="conten_body">
    <h4>
        最新文章
    </h4>
    <div class="list">
        {notempty name="post_list"}
            {volist name="post_list" id="data"}
                <article>
                    <h1>
                        <a href="{:url('cms/index/detail',['id'=>$data['id']])}">
                            {$data.title}
                        </a>
                    </h1>
                    <div class="des">
                        {$data.digest}
                    </div>
                    <div class="img">
                        <a href="#">
                            <img src="{$data.cover}" alt="{$data.title}">
                        </a>
                    </div>
                </article>
            {/volist}
        {else/}
            <p class="tc">暂无内容</p>
        {/notempty}
    </div>
</div>
{include file="sidebar" /}
{/block}

{block name="script"}
 
{/block}
